package ua.org.enginer.utils
{
	public class Maths
	{
		public static function round(val:Number, precision:int=0):Number {
			var multiplier:Number = precision > 0 ? Math.pow(10, precision) : 1
			return Math.round(val*multiplier)/multiplier
		}
		
		public static function toString(value:uint, characters:uint):String {
			return String(Math.pow(10, characters) + value).slice(1)
		}
	}
}